<?php

namespace common\models\shop;

use Yii;

/**
 * This is the model class for table "{{%shop_product_data}}".
 *
 * @property int $id
 * @property int $product_id 产品ID
 * @property string $body 产品详情
 * @property string $param 产品参数
 */
class ShopProductData extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%shop_product_data}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['product_id'], 'integer'],
            [['body'], 'required'],
            [['body', 'param'], 'string'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'product_id' => '产品ID',
            'body' => '产品详情',
            'param' => '产品参数',
        ];
    }

}
